﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PermissionDetail.aspx.cs" Inherits="AspNetTraining.PermissionDetail" %>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    
    <table style="width: 100%;">
         <tr>
            <td >PermissionID</td>
            <td><asp:Label ID="lblId" Text='<%#Eval("PermissionID")%>' runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td class="auto-style">Function</td>
            <td class="auto-style"><asp:DropDownList ID="DDLFunction" runat="server"></asp:DropDownList></td>
        </tr>
        <tr>
            <td class="auto-style">GroupUse</td>
            <td class="auto-style"><asp:DropDownList ID="DDLGroupUser" runat="server"></asp:DropDownList></td>
        </tr>
        <tr>
             <td class="auto-style"></td>  
            <td class="auto-style"></td>         
            <td class="auto-style">Allow Add</td>
            <td class="auto-style"><asp:CheckBox runat="server" ID="chkAllowAdd" Checked='<%#Eval("AllowAdd")%>'/></td>   
            <td class="auto-style">Allow Delete</td>
            <td class="auto-style"><asp:CheckBox runat="server" ID="chkAllowDelete" Checked='<%#Eval("AllowDelete")%>'/></td>        
            <td class="auto-style">Allow Edit</td>
            <td><asp:CheckBox runat="server" ID="chkAllowEdit" Checked='<%#Eval("AllowEdit")%>'/></td>   
            <td class="auto-style">Allow Read</td>
            <td><asp:CheckBox runat="server" ID="chkAllowRead" Checked='<%#Eval("AllowRead")%>'/></td>        
            <td class="auto-style">Allow Print</td>
            <td class="auto-style"><asp:CheckBox runat="server" ID="chkAllowPrint" Checked='<%#Eval("AllowPrint")%>'/></td>   
            <td class="auto-style">Allow Export</td>
            <td class="auto-style"><asp:CheckBox runat="server" ID="chkAllowExport" Checked='<%#Eval("AllowExport")%>'/></td>   
            <td class="auto-style">Allow Import</td>
            <td class="auto-style"><asp:CheckBox runat="server" ID="chkAllowImport" Checked='<%#Eval("AllowImport")%>'/> </td>                   
        </tr> 
        <tr>
            <td>CreatedOn</td>
            <td><asp:Label runat="server" ID="lblCreatedOn" Text='<%#Eval("CreatedOn")%>'></asp:Label></td>
            <td>ModifiedOn</td>
            <td><asp:Label runat="server" ID="lblModifiedOn" Text='<%#Eval("ModifiedOn")%>'></asp:Label></td>
        </tr>
        <tr>
            <td>Active</td>
            <td><asp:CheckBox runat="server" ID="chkActive" Checked='<%#Eval("chkActive")%>'/></td>      
        </tr>
         <tr>
            <td>
                <asp:Button runat="server" Text="Update" ID="btnUpdate" OnClick="btnUpdate_Click" />
                <asp:Button runat="server" Text="Exit" ID="btnExit" OnClick="btnExit_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .auto-style {
            width: auto;
        }
        
    </style>
</asp:Content>

